package routers

import (
	"github.com/gin-gonic/gin"
	"gvb-server/Middlewares"
	Api "gvb-server/api"
)

func (ApiRoute) Menu(r *gin.RouterGroup) { // 传组
	ApiGroup := Api.GroupAPI.MenuApi
	{
		r.GET("/menu", Middlewares.InitMiddleware, ApiGroup.Menu)
		r.POST("/menu", Middlewares.InitMiddleware, ApiGroup.MenuCreate)
		//r.PUT("/menu", Middlewares.InitMiddleware, ApiGroup.MenuEdit)
		r.DELETE("/menu", Middlewares.InitMiddleware, ApiGroup.MenuDel)
		r.GET("/menu_name", Middlewares.InitMiddleware, ApiGroup.MenuName)
	}
}
